<?php
include_once("inc/conn.php");
include_once("inc/function.php");
include_once("heheadmin/inc/config.php");
if(isset($_GET['id'])){
	$id = intval($_GET['id']);
	$result = $db->query("Select id,title,content,time from news WHERE id = '$id'");
	$_html = array();
	if($rs=$db->fetch_array($result)){
		$_html['title'] = ChangeEncodeG2U($rs["title"]);
		$_html['content'] = ChangeEncodeG2U($rs["content"]);
		$_html['time'] = $rs["time"];
	}else{
		echo '<script type="text/javascript">alert("不存在此条公告!");history.back();</script>';
	}
}else{
	echo '<script type="text/javascript">alert("请不要非法登陆!");history.back();</script>';
}

?>
<!DOCTYPE html>
<html>
<head>
	<title><?php echo $web_name;?> - 新闻专区</title>
	<?php
	require 'public/title.inc_yj.php';
	?>
	<!-- <link rel="stylesheet" type="text/css" href="style/news.css" /> -->
	<link rel="stylesheet" type="text/css" href="style/yj_index.css" />
</head>
<body>
<? include_once("top2.php");?>
 <div class="newsDel-section">
        <div class="mmc-section">
            <div class="newsTitle"><?php echo $_html['title'];?><span><?php echo $_html['time'];?></div>
            <p class="newsDetail">
                <p><?php echo $_html['content']; ?></p>
            </p>
            <div class="tips" style="display: none;">28运营部</div>
        </div>
    </div>
<? include_once("yj_footer.php");?>
</body>
</html>

